# CMake 最低版本号要求
cmake_minimum_required(VERSION 3.11)

# Vcpkg 工具链依赖包
set(CMAKE_TOOLCHAIN_FILE "/home/zhangjl/.vcpkg-clion/vcpkg/scripts/buildsystems/vcpkg.cmake"
        CACHE STRING "Vcpkg toolchain file")

# 项目信息
project(demo1)

SET(_SRCS
        main.c src/argparse.c
)


# Ninja
#set(CMAKE_CXX_STANDARD 17)

# 引入vcpkg依赖包
#find_package(imgui CONFIG REQUIRED)
find_package(libuv CONFIG REQUIRED)

# 生成指定目标
add_executable(${PROJECT_NAME} ${_SRCS})

# 链接库
#target_link_libraries(main PRIVATE imgui::imgui)
target_link_libraries(${PROJECT_NAME} PRIVATE $<IF:$<TARGET_EXISTS:libuv::uv_a>,libuv::uv_a,libuv::uv>)


